import "xe-utils";
import VXETable from "vxe-table";
import XEUtils from 'xe-utils'
import "vxe-table/lib/style.css";
import {formatNumber} from '@/utils/tool.js'
VXETable.formats.mixin({
  //格式kg
  formatWeight({ cellValue }) {
    return cellValue && XEUtils.divide(cellValue, 1000);
  },
  formatNumberData({ cellValue ,num=4}) {
    return cellValue && formatNumber(cellValue,num);
  },
});

VXETable.setup({
  table: {
    showOverflow: true,
    round: true,
  },
})
